-- GENERATED SPELL FOR [Scarlet Scout] --


function spell0_4281(pUnit, Event) --@Fire Shot,n/a--
pUnit:FullCastSpellOnTarget(6979,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4281', 581, 1)
end

function spell1_4281(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4281', 652, 1)
end

function Sorts_4281(pUnit, Event)
local choix_sorts_4281 = math.random(0, 1)
if choix_sorts_4281 == 0 then
pUnit:RegisterEvent('spell0_4281', 1, 1)
end
if choix_sorts_4281 == 1 then
pUnit:RegisterEvent('spell1_4281', 1, 1)
end
end

function mob4281_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4281', math.random(1500, 3000), 1)
end

function mob4281_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4281_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4281_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4281, 1, 'mob4281_Action')
RegisterUnitEvent(4281, 2, 'mob4281_Leave')
RegisterUnitEvent(4281, 3, 'mob4281_Kill')
RegisterUnitEvent(4281, 4, 'mob4281_Die')
